package com.cn.bean;

import java.util.HashSet;
import java.util.Set;

/**
 * Resident entity. @author MyEclipse Persistence Tools
 */

public class Resident implements java.io.Serializable {

	// Fields

	private Integer id;
	private String account;
	private String password;
	private String realname;
	private String address;
	private float rank;
	private String phone; 
	private Set pro_re=new HashSet();
	
	// Constructors


	/** default constructor */
	public Resident() {
	}

	public Resident(Integer id)
	{
		this.id=id;
	}
	
	/** minimal constructor */
	public Resident(String account, String password) {
		this.account = account;
		this.password = password;
	}

	/** full constructor */
	

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public Resident(Integer id, String account, String password, String realname, String address, float rank,
			String phone) {
		this.id = id;
		this.account = account;
		this.password = password;
		this.realname = realname;
		this.address = address;
		this.rank = rank;
		this.phone = phone;
	}

	public void setId(Integer id) {
		this.id = id;
	}


	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRealname() {
		return this.realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public float getRank() {
		return rank;
	}

	public void setRank(float rank) {
		this.rank = rank;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	public Set getPro_re() {
		return pro_re;
	}

	public void setPro_re(Set pro_re) {
		this.pro_re = pro_re;
	}

}